export const SortDropdownOptions = [
  {
    key: 'char',
    value: 'char',
    text: '根据名字排序',
    icon: 'sort alphabet down',
  },
  {
    key: 'time',
    value: 'time',
    text: '根据时间排序',
    icon: 'time',
  },
]

export const sortByTime = (a, b) => b.localeCompare(a)
export const sortByName = (a, b) => b.localeCompare(a)
